package tech.aistar.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tech.aistar.entity.Quiz;
import tech.aistar.mapper.EvaluateMapper;
import tech.aistar.mapper.QuizMapper;
import tech.aistar.service.IQuizService;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: shuaiguo
 * @Date: 2020/10/01/17:43
 * @Description:
 */
@Service
public class QuizImpl implements IQuizService{
    @Autowired
    private QuizMapper quizMapper;
    @Override
    public List<Quiz> selectAll() {
        return quizMapper.selectAll();
    }

    @Override
    public void insert(Quiz quiz) {
quizMapper.insert(quiz);
    }

    @Override
    public void updateByPrimaryKey(Quiz quiz) {
quizMapper.updateByPrimaryKey(quiz);
    }

    @Override
    public void deleteByPrimaryKey(Integer id) {
quizMapper.deleteByPrimaryKey(id);
    }
}
